package com.homeproject.trailservice.dal;

import com.homeproject.trailservice.domain.Deliverer;
import com.homeproject.trailservice.domain.relationship.WorksFor;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Component;

/**
 * Within a community group purchase, there are following entities and relationships
 *
 * Customer - submit -> SubOrder
 * GroupManager - Initiate -> Order
 * Fruit - PartOf -> SubOrder
 * Vegetable - PartOf -> SubOrder
 * SubOrder -> ChildOf -> Order
 * Provider - Prepare -> Order
 * Deliverer - Deliver -> Order
 * Deliverer - WorksFor -> DeliveryCompany
 * */
@Component
public interface WorksForRepository extends Neo4jRepository<WorksFor,Long> {
}
